#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<vector>
using namespace std;

class Board {
public:
    bool checkWon(vector<vector<int> > board)
    {
        int row = board.size();
        int col = board[0].size();

        for (int i = 0; i < row; i++)
        {
            int sum = 0;
            for (int j = 0; j < col; j++)
            {
                sum += board[i][j];
            }
            if (sum == col)
            {
                return true;
            }
        }
        for (int i = 0; i < col; i++)
        {
            int sum = 0;
            for (int j = 0; j < row; j++)
            {
                sum += board[j][i];
            }
            if (sum == row)
            {
                return true;
            }
        }

        int sum = 0;
        for (int i = 0; i < row; i++)
        {
            sum += board[i][i];
        }
        if (sum == row)
        {
            return true;
        }

        sum = 0;
        for (int i = 0; i < row; i++)
        {
            sum += board[i][col - i - 1];
        }
        if (sum == row)
        {
            return true;
        }

        return false;
    }
};


int main()
{

	return 0;
}